package com.yz.pay.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yz.model.dto.pay.AlipayNotifyDto;
import com.yz.model.dto.order.PayOrderRequest;
import com.yz.model.entity.pay.PayFlow;
import com.yz.model.vo.pay.PayVo;
import jakarta.servlet.http.HttpServletRequest;

import java.io.UnsupportedEncodingException;
import java.util.List;

/**
 * Created With IntelliJ IDEA.
 * Descriptions:支付Service
 * <p>
 * User:Mr.Du
 * Date:2024/3/27
 * Time:16:07
 */
public interface PayService extends IService<PayFlow> {

    String reCharge(Long uid, PayOrderRequest payOrderRequest);

    String notifyUrl(AlipayNotifyDto alipayNotifyDto);

    /**【同步跳转】**/
    void returnUrl(HttpServletRequest request) throws UnsupportedEncodingException;

    List<PayVo> getPayVoList();
}
